<?php



/**
 * This class defines the structure of the 'reports_view' table.
 *
 *
 *
 * This map class is used by Propel to do runtime db structure discovery.
 * For example, the createSelectSql() method checks the type of a given column used in an
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
 * (i.e. if it's a text column type).
 *
 * @package    propel.generator.damages.map
 */
class DamagesReportsViewTableMap extends TableMap
{

    /**
     * The (dot-path) name of this class
     */
    const CLASS_NAME = 'damages.map.DamagesReportsViewTableMap';

    /**
     * Initialize the table attributes, columns and validators
     * Relations are not initialized by this method since they are lazy loaded
     *
     * @return void
     * @throws PropelException
     */
    public function initialize()
    {
        // attributes
        $this->setName('reports_view');
        $this->setPhpName('ReportsView');
        $this->setClassname('DamagesReportsView');
        $this->setPackage('damages');
        $this->setUseIdGenerator(false);
        // columns
        $this->addPrimaryKey('BRAND_ID', 'BrandId', 'INTEGER', true, 4, null);
        $this->addColumn('BRAND_CODE', 'BrandCode', 'VARCHAR', true, 100, null);
        $this->addColumn('BRAND_NAME', 'BrandName', 'VARCHAR', true, 100, null);
        $this->addColumn('CAR_DAMAGE_ID', 'CarDamageId', 'INTEGER', true, 4, null);
        $this->addColumn('CAR_DAMAGE_CREATED', 'CarDamageCreated', 'TIMESTAMP', true, 16, null);
        $this->addColumn('CAR_DAMAGE_DATE', 'CarDamageDate', 'TIMESTAMP', true, 16, null);
        $this->addColumn('ESTIMATED_BUDGET_ID', 'EstimatedBudgetId', 'INTEGER', false, 4, null);
        $this->addColumn('ESTIMATED_BUDGET_DISCOUNT_FLAG', 'EstimatedBudgetDiscountFlag', 'INTEGER', false, 1, null);
        $this->addColumn('ESTIMATED_BUDGET_VALUE', 'EstimatedBudgetValue', 'DECIMAL', false, 20, null);
        $this->addColumn('ESTIMATED_BUDGET_DISCOUNT_VALUE', 'EstimatedBudgetDiscountValue', 'DECIMAL', false, 20, null);
        $this->addColumn('PROCESS_TYPE_ID', 'ProcessTypeId', 'INTEGER', true, 4, null);
        $this->addColumn('PROCESS_TYPE_NAME', 'ProcessTypeName', 'VARCHAR', true, 100, null);
        $this->addColumn('PROCESS_TYPE_CODE', 'ProcessTypeCode', 'VARCHAR', true, 100, null);
        $this->addColumn('INVOICE_ID', 'InvoiceId', 'INTEGER', false, 4, null);
        $this->addColumn('INVOICE_VALUE', 'InvoiceValue', 'DECIMAL', false, 20, null);
        $this->addColumn('INVOICE_DATE', 'InvoiceDate', 'TIMESTAMP', false, 16, null);
        $this->addColumn('NOTE_ID', 'NoteId', 'INTEGER', false, 4, null);
        $this->addColumn('NOTE_VALUE', 'NoteValue', 'DECIMAL', false, 20, null);
        $this->addColumn('NOTE_DATE', 'NoteDate', 'TIMESTAMP', false, 16, null);
        $this->addColumn('NOTE_TYPE_ID', 'NoteTypeId', 'INTEGER', false, 4, null);
        $this->addColumn('TRANSPORT_TYPE', 'TransportType', 'VARCHAR', true, 100, null);
        $this->addColumn('LS_ID', 'LsId', 'INTEGER', false, 4, null);
        $this->addColumn('STATUS_CODE', 'StatusCode', 'VARCHAR', true, 100, null);
        $this->addColumn('STATUS_ID', 'StatusId', 'INTEGER', true, 4, null);
        // validators
    } // initialize()

    /**
     * Build the RelationMap objects for this table relationships
     */
    public function buildRelations()
    {
    } // buildRelations()

} // DamagesReportsViewTableMap
